package com.muyu.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商品足迹对象 danmo_product_footprint
 * 
 * @author yangle
 * @date 2025-03-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoProductFootprint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 足迹id自增 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopsId;

    /** 浏览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date browseTime;

    /** 浏览类型（1 商品 2.商铺） */
    @Excel(name = "浏览类型", readConverterExp = "1=,商=品,2=.商铺")
    private Long types;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("shopsId", getShopsId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("browseTime", getBrowseTime())
            .append("types", getTypes())
            .toString();
    }
}
